/**
 * Action类型
 * @type {{}}
 */
export const type={
    SWITCH_MENU:'SWITCH_MENU',
    SET_TOKEN:'SET_TOKEN',
    SET_BD:'SET_BD',
    SET_NAVLEFT:'SET_NAVLEFT',
    WINDOW_HEIGHT:'WINDOW_HEIGHT'
};
export function switchMenu(menuName){
    return {
        type:type.SWITCH_MENU,
        menuName
    }
}

export function setToken(token){//设置token
    return {
        type:type.SET_TOKEN,
        token
    }
}
export function setBreadcrumb (name,url){//设置面包屑
    return {
        type:type.SET_BD,
        breadcrumb:{
            name,url
        }
    }
}
export function setNavLeft (navLeft){//窄的侧边栏
    return {
        type:type.SET_NAVLEFT,
        navLeft,
    }
}

export function setWindowHeight (windowHeight){//窗口高度
    return {
        type:type.WINDOW_HEIGHT,
        windowHeight,
    }
}
